import React, { Component } from 'react'
import Test from './components/Test'
export default class App extends Component {
  state = {
    c: 0,
  }
  render() {
    return (
      <div>
        App
        <button
          onClick={() => {
            this.setState({
              c: this.state.c + 1,
            })
          }}
        >
          按钮
        </button>
        {/* <Test></Test> */}
        {this.state.c == 0 && <Test></Test>}
      </div>
    )
  }
}
